package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 会员等级
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2023-02-11 16:51:08
 */
@TableName("huiyuandengji")
public class HuiyuandengjiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public HuiyuandengjiEntity() {
		
	}
	
	public HuiyuandengjiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}
//
//	public Float getDiscount() {
//		return discount;
//	}
//
//	public void setDiscount(Float discount) {
//		this.discount = discount;
//	}

	/**
	 * 等级
	 */
					
	private String grade;

	public Float getDiscount() {
		return discount;
	}

	public void setDiscount(Float discount) {
		this.discount = discount;
	}

	/**
	 * 折扣
	 */
					
	private Float discount;

	/**
	 * 消费成就
	 */
	private Float achievement;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
//	/**
//	 * 设置：等级
//	 */
//	public void setDengji(String dengji) {
//		this.dengji = dengji;
//	}
//	/**
//	 * 获取：等级
//	 */
//	public String getDengji() {
//		return dengji;
//	}
//	/**
//	 * 设置：折扣
//	 */
//	public void setZhekou(Float zhekou) {
//		this.zhekou = zhekou;
//	}
//	/**
//	 * 获取：折扣
//	 */
//	public Float getZhekou() {
//		return zhekou;
//	}

	public Float getAchievement() {
		return achievement;
	}

	public void setAchievement(Float achievement) {
		this.achievement = achievement;
	}
}
